/*
 * ThreadMicroDelay.h
 *
 *  Created on: Jan 26, 2013
 *      Author: Drew Prevost
 */

#ifndef THREADMICRODELAY_H_
#define THREADMICRODELAY_H_

#include "Arduino.h"
#include "Protothread.h"

class ThreadMicroDelay: public Protothread
{
public:
  ThreadMicroDelay();
  virtual ~ThreadMicroDelay();

  void setDelay( unsigned long nDelayMicros );

  virtual bool run();

protected:
  unsigned long nMicrosStop;
};

#endif /* THREADMICRODELAY_H_ */
